//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this sample source code is subject to the terms of the Microsoft
// license agreement under which you licensed this sample source code. If
// you did not accept the terms of the license agreement, you are not
// authorized to use this sample source code. For the terms of the license,
// please see the license agreement between you and Microsoft or, if applicable,
// see the LICENSE.RTF on your install media or the root of your tools installation.
// THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES OR INDEMNITIES.
//

#pragma once

#include "wtypes.h"


#define CLASSNAME_DESKTOP L"DesktopExplorerWindow"

// Need to call to start and stop min shell 
BOOL Desktop_Init(HINSTANCE hInstance);

void Desktop_CalibrateTouch(void);

void Desktop_Uninit(void);


// Needs to be implemented.  Return TRUE if msg is handled.
BOOL Desktop_WindowProcHook(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, LRESULT* lplResult);

void Desktop_ShellNotificationHook(DWORD dwNotify, LPVOID lpvParam);

BOOL Desktop_CreateMenus(HWND hWnd);

BOOL Desktop_ReadCommandsFromReg();

BOOL TaskBar_Start();

void TaskBar_OnSystemStarted();

void TaskBar_Stop();

HANDLE RegisterShellAPI();

#define REGISTRY_SETTINGS _T("Software\\CECompactTools\\Shell\\Minshell")
#define BACKGROUND_BITMAP_REGISTRY_VALUE _T("DesktopImage")
#define BACKGROUND_BITMAP_DEFAULT _T("\\Windows\\desktop.bmp")
#define BACKGROUND_RGB_KEY _T("Background_Color")
#define BACKGROUND_RGB_DEFAULT RGB(0,188,242)


